package com.cloud.controller;

import com.cloud.service.ApplyTestService;
import com.cloud.tools.CommonResult;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 *
 * @author： linJianHong
 * @dateTime： 21:21 2022/4/17
 * @Description: User apply for test control layer
 * @ClassName: ApplyTestController
 */

@RestController
public class ApplyTestController {

    @Resource
    ApplyTestService applyTestService;

    /* 用户申请核酸检测 */
    @GetMapping(value = "/natms1/apply/test/create")
    public CommonResult applyTestCreate(){
        return applyTestService.create();
    }

    /* 用户查看核酸检测申请 */
    @GetMapping(value = "/natms1/apply/test/retrieve")
    public CommonResult applyTestRetrieve(){
        return applyTestService.retrieve();
    }

}
